// Created from GenerationTemplate
// For Decisions HL7 Engine
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Reflection;
using DecisionsFramework.Design.Properties;
using Decisions.HL7.Generated.AbstractMessage;
using Decisions.HL7.DataTypes;
using ST = System.String;
using SI = System.String;
using TX = System.String;
using FT = System.String;
using IS = System.String;
using ID = System.String;
using SNM = System.String;

namespace Decisions.HL7.Message
{
    [DataContract]
	public class FT1 : AbstractSegment
    {

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("1 Set ID - Financial Transaction",1)]
  	    [HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.True,"SI")]
	    public SI SetIDFinancialTransaction {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("2 Transaction ID",2)]
  	    [HL7Field(HL7Version.v23, 2, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 2, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 2, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 2, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 2, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v26, 2, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v27, 2, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST TransactionID {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("3 Transaction Batch ID",3)]
  	    [HL7Field(HL7Version.v23, 3, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 3, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 3, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 3, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 3, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v26, 3, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v27, 3, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST TransactionBatchID {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("4 Transaction Date",4)]
  	    [HL7Field(HL7Version.v23, 4, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v231, 4, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v24, 4, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v25, 4, HL7Repeat.False, HL7Required.True,"DR")]
  	    [HL7Field(HL7Version.v251, 4, HL7Repeat.False, HL7Required.True,"DR")]
  	    [HL7Field(HL7Version.v26, 4, HL7Repeat.False, HL7Required.True,"DR")]
  	    [HL7Field(HL7Version.v27, 4, HL7Repeat.False, HL7Required.True,"DR")]
	    public DR TransactionDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("5 Transaction Posting Date",5)]
  	    [HL7Field(HL7Version.v23, 5, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v231, 5, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v24, 5, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v25, 5, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v251, 5, HL7Repeat.False, HL7Required.True,"TS")]
  	    [HL7Field(HL7Version.v26, 5, HL7Repeat.False, HL7Required.True,"DTM")]
  	    [HL7Field(HL7Version.v27, 5, HL7Repeat.False, HL7Required.True,"DTM")]
	    public DTM TransactionPostingDate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("6 Transaction Type",6)]
  	    [HL7Field(HL7Version.v23, 6, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 6, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 6, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 6, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 6, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 6, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 6, HL7Repeat.False, HL7Required.True,"CWE")]
		[TransactionType]
	    public CWE TransactionType {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("7 Transaction Code",7)]
  	    [HL7Field(HL7Version.v23, 7, HL7Repeat.False, HL7Required.True,"CE_0132")]
  	    [HL7Field(HL7Version.v231, 7, HL7Repeat.False, HL7Required.True,"CE_0132")]
  	    [HL7Field(HL7Version.v24, 7, HL7Repeat.False, HL7Required.True,"CE_0132")]
  	    [HL7Field(HL7Version.v25, 7, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 7, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 7, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 7, HL7Repeat.False, HL7Required.True,"CWE")]
		[TransactionCode]
	    public CWE TransactionCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("8 Transaction Description",8)]
  	    [HL7Field(HL7Version.v23, 8, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 8, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 8, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 8, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 8, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST TransactionDescription {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("9 Transaction Description - alternate",9)]
  	    [HL7Field(HL7Version.v23, 9, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v231, 9, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v24, 9, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v25, 9, HL7Repeat.False, HL7Required.True,"ST")]
  	    [HL7Field(HL7Version.v251, 9, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST TransactionDescriptionalternate {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("10 Transaction Quantity",10)]
  	    [HL7Field(HL7Version.v23, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v231, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v24, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v25, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v251, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v26, 10, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v27, 10, HL7Repeat.False, HL7Required.True,"NM")]
	    public NM TransactionQuantity {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("11 Transaction Amount - Extended",11)]
  	    [HL7Field(HL7Version.v23, 11, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v231, 11, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v24, 11, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v25, 11, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v251, 11, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v26, 11, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v27, 11, HL7Repeat.False, HL7Required.True,"CP")]
	    public CP TransactionAmountExtended {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("12 Transaction amount - unit",12)]
  	    [HL7Field(HL7Version.v23, 12, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v231, 12, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v24, 12, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v25, 12, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v251, 12, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v26, 12, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v27, 12, HL7Repeat.False, HL7Required.True,"CP")]
	    public CP Transactionamountunit {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("13 Department Code",13)]
  	    [HL7Field(HL7Version.v23, 13, HL7Repeat.False, HL7Required.True,"CE_0049")]
  	    [HL7Field(HL7Version.v231, 13, HL7Repeat.False, HL7Required.True,"CE_0049")]
  	    [HL7Field(HL7Version.v24, 13, HL7Repeat.False, HL7Required.True,"CE_0049")]
  	    [HL7Field(HL7Version.v25, 13, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 13, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 13, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 13, HL7Repeat.False, HL7Required.True,"CWE")]
		[DepartmentCode]
	    public CWE DepartmentCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("14 Health Plan ID",14)]
  	    [HL7Field(HL7Version.v23, 14, HL7Repeat.False, HL7Required.True,"CE_0072")]
  	    [HL7Field(HL7Version.v231, 14, HL7Repeat.False, HL7Required.True,"CE_0072")]
  	    [HL7Field(HL7Version.v24, 14, HL7Repeat.False, HL7Required.True,"CE_0072")]
  	    [HL7Field(HL7Version.v25, 14, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 14, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 14, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 14, HL7Repeat.False, HL7Required.True,"CWE")]
		[InsuranceplanID]
	    public CWE HealthPlanID {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("15 Insurance Amount",15)]
  	    [HL7Field(HL7Version.v23, 15, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v231, 15, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v24, 15, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v25, 15, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v251, 15, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v26, 15, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v27, 15, HL7Repeat.False, HL7Required.True,"CP")]
	    public CP InsuranceAmount {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("16 Assigned Patient Location",16)]
  	    [HL7Field(HL7Version.v23, 16, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v231, 16, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v24, 16, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v25, 16, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v251, 16, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v26, 16, HL7Repeat.False, HL7Required.True,"PL")]
  	    [HL7Field(HL7Version.v27, 16, HL7Repeat.False, HL7Required.True,"PL")]
	    public PL AssignedPatientLocation {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("17 Fee Schedule",17)]
  	    [HL7Field(HL7Version.v23, 17, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 17, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 17, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 17, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 17, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 17, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 17, HL7Repeat.False, HL7Required.True,"CWE")]
		[FeeSchedule]
	    public CWE FeeSchedule {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("18 Patient Type",18)]
  	    [HL7Field(HL7Version.v23, 18, HL7Repeat.False, HL7Required.True,"ID")]
  	    [HL7Field(HL7Version.v231, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v24, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v25, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v251, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v26, 18, HL7Repeat.False, HL7Required.True,"IS")]
  	    [HL7Field(HL7Version.v27, 18, HL7Repeat.False, HL7Required.True,"CWE")]
		[PatientType]
	    public CWE PatientType {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("19 Diagnosis Code",19)]
  	    [HL7Field(HL7Version.v23, 19, HL7Repeat.True, HL7Required.True,"CE_0051")]
  	    [HL7Field(HL7Version.v231, 19, HL7Repeat.True, HL7Required.True,"CE_0051")]
  	    [HL7Field(HL7Version.v24, 19, HL7Repeat.True, HL7Required.True,"CE_0051")]
  	    [HL7Field(HL7Version.v25, 19, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 19, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 19, HL7Repeat.True, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 19, HL7Repeat.True, HL7Required.True,"CWE")]
		[DiagnosisCode]
	    public CWE[] DiagnosisCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("20 Performed By Code",20)]
  	    [HL7Field(HL7Version.v23, 20, HL7Repeat.False, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v231, 20, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v24, 20, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v25, 20, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v251, 20, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v26, 20, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v27, 20, HL7Repeat.True, HL7Required.True,"XCN")]
		[Performedby]
	    public XCN[] PerformedByCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("21 Ordered By Code",21)]
  	    [HL7Field(HL7Version.v23, 21, HL7Repeat.False, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v231, 21, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v24, 21, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v25, 21, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v251, 21, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v26, 21, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v27, 21, HL7Repeat.True, HL7Required.True,"XCN")]
	    public XCN[] OrderedByCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("22 Unit Cost",22)]
  	    [HL7Field(HL7Version.v23, 22, HL7Repeat.False, HL7Required.True,"NM")]
  	    [HL7Field(HL7Version.v231, 22, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v24, 22, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v25, 22, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v251, 22, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v26, 22, HL7Repeat.False, HL7Required.True,"CP")]
  	    [HL7Field(HL7Version.v27, 22, HL7Repeat.False, HL7Required.True,"CP")]
	    public CP UnitCost {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("23 Filler Order Number",23)]
  	    [HL7Field(HL7Version.v23, 23, HL7Repeat.False, HL7Required.True,"EI")]
  	    [HL7Field(HL7Version.v231, 23, HL7Repeat.False, HL7Required.True,"EI")]
  	    [HL7Field(HL7Version.v24, 23, HL7Repeat.False, HL7Required.True,"EI")]
  	    [HL7Field(HL7Version.v25, 23, HL7Repeat.False, HL7Required.True,"EI")]
  	    [HL7Field(HL7Version.v251, 23, HL7Repeat.False, HL7Required.True,"EI")]
  	    [HL7Field(HL7Version.v26, 23, HL7Repeat.False, HL7Required.True,"EI")]
  	    [HL7Field(HL7Version.v27, 23, HL7Repeat.False, HL7Required.True,"EI")]
	    public EI FillerOrderNumber {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("24 Entered By Code",24)]
  	    [HL7Field(HL7Version.v23, 24, HL7Repeat.False, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v231, 24, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v24, 24, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v25, 24, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v251, 24, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v26, 24, HL7Repeat.True, HL7Required.True,"XCN")]
  	    [HL7Field(HL7Version.v27, 24, HL7Repeat.True, HL7Required.True,"XCN")]
	    public XCN[] EnteredByCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("25 Procedure Code",25)]
  	    [HL7Field(HL7Version.v23, 25, HL7Repeat.False, HL7Required.True,"CE_0088")]
  	    [HL7Field(HL7Version.v231, 25, HL7Repeat.False, HL7Required.True,"CE_0088")]
  	    [HL7Field(HL7Version.v24, 25, HL7Repeat.False, HL7Required.True,"CE_0088")]
  	    [HL7Field(HL7Version.v25, 25, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 25, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 25, HL7Repeat.False, HL7Required.True,"CNE")]
  	    [HL7Field(HL7Version.v27, 25, HL7Repeat.False, HL7Required.True,"CNE")]
		[ProcedureCode]
	    public CNE ProcedureCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("26 Procedure Code Modifier",26)]
  	    [HL7Field(HL7Version.v231, 26, HL7Repeat.True, HL7Required.True,"CE_0340")]
  	    [HL7Field(HL7Version.v24, 26, HL7Repeat.True, HL7Required.True,"CE_0340")]
  	    [HL7Field(HL7Version.v25, 26, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 26, HL7Repeat.True, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 26, HL7Repeat.True, HL7Required.True,"CNE")]
  	    [HL7Field(HL7Version.v27, 26, HL7Repeat.True, HL7Required.True,"CNE")]
		[Procedurecodemodifier]
	    public CNE[] ProcedureCodeModifier {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("27 Advanced Beneficiary Notice Code",27)]
  	    [HL7Field(HL7Version.v25, 27, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v251, 27, HL7Repeat.False, HL7Required.True,"CE")]
  	    [HL7Field(HL7Version.v26, 27, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 27, HL7Repeat.False, HL7Required.True,"CWE")]
		[AdvancedBeneficiaryNoticeCode]
	    public CWE AdvancedBeneficiaryNoticeCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("28 Medically Necessary Duplicate Procedure Reason",28)]
  	    [HL7Field(HL7Version.v25, 28, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v251, 28, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v26, 28, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 28, HL7Repeat.False, HL7Required.True,"CWE")]
		[MedicallyNecessaryDuplicateProcedureReason]
	    public CWE MedicallyNecessaryDuplicateProcedureReason {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("29 NDC Code",29)]
  	    [HL7Field(HL7Version.v25, 29, HL7Repeat.False, HL7Required.True,"CNE")]
  	    [HL7Field(HL7Version.v251, 29, HL7Repeat.False, HL7Required.True,"CNE")]
  	    [HL7Field(HL7Version.v26, 29, HL7Repeat.False, HL7Required.True,"CWE")]
  	    [HL7Field(HL7Version.v27, 29, HL7Repeat.False, HL7Required.True,"CWE")]
		[NDCCodes]
	    public CWE NDCCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("30 Payment Reference ID",30)]
  	    [HL7Field(HL7Version.v25, 30, HL7Repeat.False, HL7Required.True,"CX")]
  	    [HL7Field(HL7Version.v251, 30, HL7Repeat.False, HL7Required.True,"CX")]
  	    [HL7Field(HL7Version.v26, 30, HL7Repeat.False, HL7Required.True,"CX")]
  	    [HL7Field(HL7Version.v27, 30, HL7Repeat.False, HL7Required.True,"CX")]
	    public CX PaymentReferenceID {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("31 Transaction Reference Key",31)]
  	    [HL7Field(HL7Version.v25, 31, HL7Repeat.True, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v251, 31, HL7Repeat.True, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v26, 31, HL7Repeat.True, HL7Required.True,"SI")]
  	    [HL7Field(HL7Version.v27, 31, HL7Repeat.True, HL7Required.True,"SI")]
	    public SI[] TransactionReferenceKey {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("32 Performing Facility",32)]
  	    [HL7Field(HL7Version.v27, 32, HL7Repeat.True, HL7Required.True,"XON")]
	    public XON[] PerformingFacility {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("33 Ordering Facility",33)]
  	    [HL7Field(HL7Version.v27, 33, HL7Repeat.False, HL7Required.True,"XON")]
	    public XON OrderingFacility {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("34 Item Number",34)]
  	    [HL7Field(HL7Version.v27, 34, HL7Repeat.False, HL7Required.True,"CWE")]
	    public CWE ItemNumber {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("35 Model Number",35)]
  	    [HL7Field(HL7Version.v27, 35, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST ModelNumber {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("36 Special Processing Code",36)]
  	    [HL7Field(HL7Version.v27, 36, HL7Repeat.True, HL7Required.True,"CWE")]
	    public CWE[] SpecialProcessingCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("37 Clinic Code",37)]
  	    [HL7Field(HL7Version.v27, 37, HL7Repeat.False, HL7Required.True,"CWE")]
	    public CWE ClinicCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("38 Referral Number",38)]
  	    [HL7Field(HL7Version.v27, 38, HL7Repeat.False, HL7Required.True,"CX")]
	    public CX ReferralNumber {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("39 Authorization Number",39)]
  	    [HL7Field(HL7Version.v27, 39, HL7Repeat.False, HL7Required.True,"CX")]
	    public CX AuthorizationNumber {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("40 Service Provider Taxonomy Code",40)]
  	    [HL7Field(HL7Version.v27, 40, HL7Repeat.False, HL7Required.True,"CWE")]
	    public CWE ServiceProviderTaxonomyCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("41 Revenue Code",41)]
  	    [HL7Field(HL7Version.v27, 41, HL7Repeat.False, HL7Required.True,"CWE")]
		[Revenuecode]
	    public CWE RevenueCode {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("42 Prescription Number",42)]
  	    [HL7Field(HL7Version.v27, 42, HL7Repeat.False, HL7Required.True,"ST")]
	    public ST PrescriptionNumber {get;set;}

        /// -----------------------------
        /// -----------------------------
		[DataMember]
    	[PropertyClassification("43 NDC Qty and UOM",43)]
  	    [HL7Field(HL7Version.v27, 43, HL7Repeat.False, HL7Required.True,"CQ")]
	    public CQ NDCQtyandUOM {get;set;}


	    [DataMember]
        [PropertyClassification("AdditionalValue1", 44)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue1 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue2", 45)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue2 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue3", 46)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue3 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue4", 47)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue4 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue5", 48)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue5 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue6", 49)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue6 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue7", 50)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue7 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue8", 51)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue8 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue9", 52)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue9 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue10", 53)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue10 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue11", 54)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue11 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue12", 55)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue12 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue13", 56)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue13 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue14", 57)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue14 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue15", 58)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue15 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue16", 59)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue16 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue17", 60)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue17 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue18", 61)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue18 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue19", 62)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue19 { get; set; }

		    [DataMember]
        [PropertyClassification("AdditionalValue20", 63)]
		[HL7Field(HL7Version.v23, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v231, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v24, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v25, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v251, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v26, 1, HL7Repeat.False, HL7Required.False)]
  	    [HL7Field(HL7Version.v27, 1, HL7Repeat.False, HL7Required.False)]
		public string AdditionalValue20 { get; set; }

	

		internal override void ConsumeTextSegment(string segmentTextData, HL7ParserOptions options)
		{
			string[] segmentTextParts = segmentTextData.Split(new char[] { options.FieldSep }, StringSplitOptions.None);
			SetIDFinancialTransaction = (SI)ParseTextAtPositionIntoData(segmentTextParts, 1, options, typeof(SI), "FT1.1");
			TransactionID = (ST)ParseTextAtPositionIntoData(segmentTextParts, 2, options, typeof(ST), "FT1.2");
			TransactionBatchID = (ST)ParseTextAtPositionIntoData(segmentTextParts, 3, options, typeof(ST), "FT1.3");
			TransactionDate = (DR)ParseTextAtPositionIntoData(segmentTextParts, 4, options, typeof(DR), "FT1.4");
			TransactionPostingDate = (DTM)ParseTextAtPositionIntoData(segmentTextParts, 5, options, typeof(DTM), "FT1.5");
			TransactionType = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 6, options, typeof(CWE), "FT1.6");
			TransactionCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 7, options, typeof(CWE), "FT1.7");
			TransactionDescription = (ST)ParseTextAtPositionIntoData(segmentTextParts, 8, options, typeof(ST), "FT1.8");
			TransactionDescriptionalternate = (ST)ParseTextAtPositionIntoData(segmentTextParts, 9, options, typeof(ST), "FT1.9");
			TransactionQuantity = (NM)ParseTextAtPositionIntoData(segmentTextParts, 10, options, typeof(NM), "FT1.10");
			TransactionAmountExtended = (CP)ParseTextAtPositionIntoData(segmentTextParts, 11, options, typeof(CP), "FT1.11");
			Transactionamountunit = (CP)ParseTextAtPositionIntoData(segmentTextParts, 12, options, typeof(CP), "FT1.12");
			DepartmentCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 13, options, typeof(CWE), "FT1.13");
			HealthPlanID = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 14, options, typeof(CWE), "FT1.14");
			InsuranceAmount = (CP)ParseTextAtPositionIntoData(segmentTextParts, 15, options, typeof(CP), "FT1.15");
			AssignedPatientLocation = (PL)ParseTextAtPositionIntoData(segmentTextParts, 16, options, typeof(PL), "FT1.16");
			FeeSchedule = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 17, options, typeof(CWE), "FT1.17");
			PatientType = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 18, options, typeof(CWE), "FT1.18");
	    	DiagnosisCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 19, options, "FT1.19");
	    	PerformedByCode = (XCN[])ParseTextAtPositionIntoDataArray<XCN>(segmentTextParts, 20, options, "FT1.20");
	    	OrderedByCode = (XCN[])ParseTextAtPositionIntoDataArray<XCN>(segmentTextParts, 21, options, "FT1.21");
			UnitCost = (CP)ParseTextAtPositionIntoData(segmentTextParts, 22, options, typeof(CP), "FT1.22");
			FillerOrderNumber = (EI)ParseTextAtPositionIntoData(segmentTextParts, 23, options, typeof(EI), "FT1.23");
	    	EnteredByCode = (XCN[])ParseTextAtPositionIntoDataArray<XCN>(segmentTextParts, 24, options, "FT1.24");
			ProcedureCode = (CNE)ParseTextAtPositionIntoData(segmentTextParts, 25, options, typeof(CNE), "FT1.25");
	    	ProcedureCodeModifier = (CNE[])ParseTextAtPositionIntoDataArray<CNE>(segmentTextParts, 26, options, "FT1.26");
			AdvancedBeneficiaryNoticeCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 27, options, typeof(CWE), "FT1.27");
			MedicallyNecessaryDuplicateProcedureReason = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 28, options, typeof(CWE), "FT1.28");
			NDCCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 29, options, typeof(CWE), "FT1.29");
			PaymentReferenceID = (CX)ParseTextAtPositionIntoData(segmentTextParts, 30, options, typeof(CX), "FT1.30");
	    	TransactionReferenceKey = (SI[])ParseTextAtPositionIntoDataArray<SI>(segmentTextParts, 31, options, "FT1.31");
	    	PerformingFacility = (XON[])ParseTextAtPositionIntoDataArray<XON>(segmentTextParts, 32, options, "FT1.32");
			OrderingFacility = (XON)ParseTextAtPositionIntoData(segmentTextParts, 33, options, typeof(XON), "FT1.33");
			ItemNumber = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 34, options, typeof(CWE), "FT1.34");
			ModelNumber = (ST)ParseTextAtPositionIntoData(segmentTextParts, 35, options, typeof(ST), "FT1.35");
	    	SpecialProcessingCode = (CWE[])ParseTextAtPositionIntoDataArray<CWE>(segmentTextParts, 36, options, "FT1.36");
			ClinicCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 37, options, typeof(CWE), "FT1.37");
			ReferralNumber = (CX)ParseTextAtPositionIntoData(segmentTextParts, 38, options, typeof(CX), "FT1.38");
			AuthorizationNumber = (CX)ParseTextAtPositionIntoData(segmentTextParts, 39, options, typeof(CX), "FT1.39");
			ServiceProviderTaxonomyCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 40, options, typeof(CWE), "FT1.40");
			RevenueCode = (CWE)ParseTextAtPositionIntoData(segmentTextParts, 41, options, typeof(CWE), "FT1.41");
			PrescriptionNumber = (ST)ParseTextAtPositionIntoData(segmentTextParts, 42, options, typeof(ST), "FT1.42");
			NDCQtyandUOM = (CQ)ParseTextAtPositionIntoData(segmentTextParts, 43, options, typeof(CQ), "FT1.43");
		}

		public string GetER7(HL7ParserOptions options) {
			List<string> segmentParts = new List<string>();
			segmentParts.Add("FT1");
		    segmentParts.Add(SetIDFinancialTransaction);
		    segmentParts.Add(TransactionID);
		    segmentParts.Add(TransactionBatchID);
			segmentParts.Add(GetER7TextForSegmentPart(TransactionDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(TransactionPostingDate, options));
			segmentParts.Add(GetER7TextForSegmentPart(TransactionType, options));
			segmentParts.Add(GetER7TextForSegmentPart(TransactionCode, options));
		    segmentParts.Add(TransactionDescription);
		    segmentParts.Add(TransactionDescriptionalternate);
			segmentParts.Add(GetER7TextForSegmentPart(TransactionQuantity, options));
			segmentParts.Add(GetER7TextForSegmentPart(TransactionAmountExtended, options));
			segmentParts.Add(GetER7TextForSegmentPart(Transactionamountunit, options));
			segmentParts.Add(GetER7TextForSegmentPart(DepartmentCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(HealthPlanID, options));
			segmentParts.Add(GetER7TextForSegmentPart(InsuranceAmount, options));
			segmentParts.Add(GetER7TextForSegmentPart(AssignedPatientLocation, options));
			segmentParts.Add(GetER7TextForSegmentPart(FeeSchedule, options));
			segmentParts.Add(GetER7TextForSegmentPart(PatientType, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(DiagnosisCode, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(PerformedByCode, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(OrderedByCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(UnitCost, options));
			segmentParts.Add(GetER7TextForSegmentPart(FillerOrderNumber, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(EnteredByCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(ProcedureCode, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(ProcedureCodeModifier, options));
			segmentParts.Add(GetER7TextForSegmentPart(AdvancedBeneficiaryNoticeCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(MedicallyNecessaryDuplicateProcedureReason, options));
			segmentParts.Add(GetER7TextForSegmentPart(NDCCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(PaymentReferenceID, options));
		    segmentParts.Add(ConvertStringArray(TransactionReferenceKey, options));
		    segmentParts.Add(GetER7TextForSegmentArrayPart(PerformingFacility, options));
			segmentParts.Add(GetER7TextForSegmentPart(OrderingFacility, options));
			segmentParts.Add(GetER7TextForSegmentPart(ItemNumber, options));
		    segmentParts.Add(ModelNumber);
		    segmentParts.Add(GetER7TextForSegmentArrayPart(SpecialProcessingCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(ClinicCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(ReferralNumber, options));
			segmentParts.Add(GetER7TextForSegmentPart(AuthorizationNumber, options));
			segmentParts.Add(GetER7TextForSegmentPart(ServiceProviderTaxonomyCode, options));
			segmentParts.Add(GetER7TextForSegmentPart(RevenueCode, options));
		    segmentParts.Add(PrescriptionNumber);
			segmentParts.Add(GetER7TextForSegmentPart(NDCQtyandUOM, options));
			return string.Join("" + options.FieldSep, segmentParts.ToArray());
		}

    }
}

